<div class='profile-wrap'>
    <div class="profile-inner">
        <div class="block">
            <fieldset>
                <legend><?php echo lang('LBL_AVATAR') ?></legend>
            <?php echo form_open(
                    array(
                        'action' => getBaseUrl($_SERVER['REQUEST_URI']),
                        'enctype' => "multipart/form-data"
                        )
                    ); ?>
            <div class="avatar">
                <img src="<?php echo $avatar ?>" />
            </div>
            <?php echo form_input(
                    array(
                        'type' => 'file',
                        'name' => 'profile[avatar]',
                        'placeholder' => lang('LBL_AVATAR')
            )); ?>
            <?php echo form_close(); ?>
            </fieldset>
        </div>
        <div class="block">
        <fieldset>
            <legend><?php echo lang('LBL_INFO_BASIC') ?></legend>
            <form class="form-horizontal">
                <div class="control-group">
                    <label class="control-label" for="fullname"><?php echo lang('LBL_FULLNAME')?></label>
                    <div class="controls">
                    <?php
                    echo form_input(
                            array(
                            'type' => 'text',
                            'name' => 'profile[fullname]',
                            'id' => 'fullname',
                            'max-length' => 50,
                            'placeholder' => lang('PHD_FULLNAME'),
                            'value' => (isset($fullname)!=''?$fullname:'')
                                ))
                    ?>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="address"><?php echo lang('LBL_ADDRESS')?></label>
                    <div class="controls">
                    <?php
                    echo form_input(
                            array(
                                'type' => 'text',
                                'name' => 'profile[address]',
                                'id' => 'address',
                                'max-length' => '50',
                                'placeholder' => lang('PHD_ADDRESS')
                    ))
                    ?>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="email"><?php echo lang('LBL_EMAIL')?></label>
                    <div class="controls">
                    <?php
                    echo form_input(
                            array(
                                'type' => 'email',
                                'name' => 'profile[email]',
                                'id' => 'email',
                                'max-length' => '50',
                                'placeholder' => lang('PHD_EMAIL')
                    ))
                    ?>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="phone"><?php echo lang('LBL_PHONE')?></label>
                    <div class="controls">
                    <?php
                    echo form_input(
                            array(
                                'type' => 'text',
                                'name' => 'profile[phone]',
                                'id' => 'phone',
                                'max-length' => '50',
                                'placeholder' => lang('PHD_PHONE')
                    ));
                    ?>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="career"><?php echo lang('LBL_CAREER')?></label>
                    <div class="controls">
                    <?php
                    echo form_input(
                            array(
                                'type' => 'text',
                                'name' => 'profile[career]',
                                'id' => 'career',
                                'max-length' => '50',
                                'placeholder' => lang('PHD_CAREER')
                    ));
                    ?>
                    </div>
                </div>                
                <div class="form-actions">
                <button type="submit" class="btn btn-primary">Save changes</button>
                <button type="button" class="btn">Cancel</button>
                </div>                
            </form>
        </fieldset>    
        </div>
    </div>
</div>